{% extends "base.html" %}

{% block content %}
	


    {% for i in content %}
		{% csrf_token %}
        <div class="file-content">
        <div class="file-name" style="width:15%;">{{ i.class_name }}</div>
        <div class="file-size" style="width:15%;">{{ i.name }} </div>
        <div class="file-date" style="width:40%;">{{ i.link }}</div>
        <div class="file-date" style="width:10%;">{{ i.nums }}</div>
        <div class="file-link" style="width:20%; padding-right: 80px; text-overflow: ellipsis; overflow: hidden;">
            <span>
                点击下载
            </span>
        </div>
        <a href="{% url 'atl:download' i.pk %}" style="color:#FFF;"><button>Download</button></a>
    </div>
    {% endfor %}
	
	<div id="pages" class="text-center" >
	<nav>
	<ul class="pagination">
	<li class="step-links">
	{% if content.has_previous %}
		<a class='active' href="?page={{ content.previous_page_number }}">上一页</a>
	{% endif %}

	<span class="current">
		Page {{ content.number }} of {{ content.paginator.num_pages }}</span>

	{% if content.has_next %}
		<a class='active' href="?page={{ content.next_page_number }}">下一页</a>
	{% endif %}
	</li></ul></nav></div>
	
		
	
{% endblock %}

